<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="__PUBLIC__/css/ydh.css" rel="stylesheet">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="renderer" content="webkit">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>三鑫灯世界 - 我的订单</title>
	<link rel="stylesheet" href="__PUBLIC__/css/c.css">
	<link rel="stylesheet" href="__PUBLIC__/css/page.css">
	<style>
		.borderRight{border-right: 1px solid #f0f0f0 !important;}
		.listhead{background: #f7f7f7!important;}
		.listhead td{height: 70px !important;background: #f7f7f7 !important;padding: 0!important;}
		.listhead p{height: 40px;background: #fff !important;}
		.listhead span{padding-left: 20px}
	</style>
</head>
<body>
	<div class="r-wrap">
		<!--公共头部-->
		<include file="Public:head2"/>

		<div class="main-wrap">
			<div class="order customer-order-list">
				<ul class="ui-tab-menu product-tab-menu">
					<li class="current"><a code="WBO_PRODUCT_LIST" class="menu2">我的订单</a></li>
				</ul>

				<div class="main-t">
					<form method="get" id="myForm" action="{:U('shop_order')}" autocomplete="off">
						<div class="func clearfix">
						   <div class="control-filter">筛选：
								<select id="order_status" name="order_status" style="width: 100px;" onchange="document.getElementById('myForm').submit();">
									<option value="">全部订单</option>
									<option value="-1" <if condition="$order_status eq -1">selected</if>>已取消</option>
									<option value="0" <if condition="$order_status eq '0'">selected</if>>待支付</option>
									<option value="1" <if condition="$order_status eq 1">selected</if>>待发货</option>
									<option value="2" <if condition="$order_status eq 2">selected</if>>待收货</option>
									<option value="3" <if condition="$order_status eq 3">selected</if>>已收货</option>
									<option value="4" <if condition="$order_status eq 4">selected</if>>申请换货</option>
									<option value="5" <if condition="$order_status eq 5">selected</if>>确认换货</option>
									<option value="6" <if condition="$order_status eq 6">selected</if>>已换货</option>
									<option value="7" <if condition="$order_status eq 7">selected</if>>申请退货</option>
									<option value="8" <if condition="$order_status eq 8">selected</if>>确认退货</option>
									<option value="9" <if condition="$order_status eq 9">selected</if>>已退货</option>
								</select>
						   </div>
						</div>
					</form>
					<div class="table-wrap">
						<table class="fitTable">
						<thead>
							<tr>
								<th class="tc" style="width: 17%;" colspan="2">商品 x 数量</th>
								<th class="tc" style="width: 6%;"><if condition="session('user_vip') eq 1">会员价<else />单价</if></th>
								<th class="tc" style="width: 3%;">运费</th>
								<th class="tc" style="width: 4%;">收货人</th>
								<th class="tc" style="width: 4%;">订单状态</th>
								<th class="tc" style="width: 4%;">上门安装</th>
								<th class="tc" style="width: 4%;">安装方式</th>
								<th class="tc" style="width: 5%;">安装费</th>
								<th class="tc" style="width: 4%;">安装电工</th>
								<th class="tc" style="width: 4%;">电工确认</th>
								<th class="tc" style="width: 4%;">安装状态</th>
								<th class="tc" style="width: 7%;">总额</th>
								<th class="tc" style="width: 9%;">操作</th>
							</tr>
						</thead>
						<tbody>
							<div style="font-size: 15px; margin-bottom: 10px;">注：1）电工未同意的“就近安装”订单，系统会在<span style="color:red;">24小时</span>后默认抢单 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2）商品自安装之日起，一年内<span style="color:red;">免费</span>上门维修服务&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3）<span style="color:red;">投诉反馈</span>请联系QQ客服</div>
							<!--<div style="font-size: 15px; margin-bottom: 10px;"></div>-->
							<volist name="order_number_list" id="ol">
								<tr class="listhead">
									<td colspan="14">
										<p></p>
										下单时间：<span>{$ol.add_time}</span>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;订单编号：<span>{$ol.order_number}</span>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<neq name="ol.tracking_number" value="">物流编号：<span>{$ol.tracking_number}</span></neq>
									</td>
								</tr>
								<volist name="ol['order_good_list']" id="gl" key="k">
									<tr class="" style="margin-top:15px;">
											<td class="order-address tc" style="width: 30px;">
												<span><img src="__ROOT__{$gl.good_picture}" style="width: 100%"></span>
											</td>
											<td class="order-address tl">
												<span>{$gl.good_name}</span>
												<span>x{$gl.num}</span>
											</td>
											<td class="actualMoney tc borderRight">
												￥{$gl['price']}
											</td>
										<if condition="($k eq 1) or ($gl.order_status gt 2)">
											<td class="tc actualMoney borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												包邮
											</td>
										</if>
										<if condition="($k eq 1) or ($gl.order_status gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												 <span> {$ol.receiver}</span>
											</td>
										</if>
										<if condition="($k eq 1) or ($gl.order_status gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<switch name="gl['order_status']">
													<case value="-1">已取消</case>
													<case value="0">待支付</case>
													<case value="1">待发货</case>
													<case value="2">待收货</case>
													<case value="3">已收货</case>
													<case value="4">申请换货</case>
													<case value="5">确认换货</case>
													<case value="6">已换货</case>
													<case value="7">申请退货</case>
													<case value="8">确认退货</case>
													<case value="9">已退货</case>
												</switch>
											</td>
										</if>

										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<if condition="$gl['is_install'] eq 1">
													<span>需要</span>
													<else />
													<span>不需要</span>
												</if>
											</td>
										</if>

										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
											<if condition="$gl['install_type'] eq 1">
												<span>系统抢单</span>
												<else />
												<span>就近安装</span>
											</if>
											</td>
										</if>

										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<if condition="($gl.order_status lt 3) and ($gl.is_install eq 1)">
													￥<lt name="ol['total_install_price']" value="$configInfo['min_install_price']">
														{$configInfo['min_install_price']}
													<else/>
														{$ol['total_install_price']}
													</lt>
												<elseif condition="$gl.is_install eq -1" />
													-- --
												<else />
													￥{$gl['install_price']}
												</if>
											</td>
										</if>
										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<if condition="($gl['order_status'] egt 0) and ($gl['is_install'] eq 1) and ($gl['electrician_id'] neq 0) and ($gl['install_type'] eq 2)">
													{$ol.electrician_name}
												<elseif condition="($gl['order_status'] gt 0) and ($gl['is_install'] eq 1) and ($gl['electrician_id'] neq 0)"/>
													{$ol.electrician_name}
												<elseif condition="($gl['order_status'] gt 0) and ($gl['is_install'] eq 1) and ($gl['electrician_id'] eq 0)"/>
													<span style="color:red;">正在派单<span>
												<else />
													---
												</if>
											</td>
										</if>

										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<if condition="$gl['electrician_confirm'] eq ''">
													<span>不需要</span>
												<elseif condition="$gl['electrician_confirm'] eq '-1'" />
													<span style="color:red;">未同意</span>
												<elseif condition="$gl['electrician_confirm'] eq 1" />
													<span style="color:green;">同意</span>
												<else />
													<span>待处理</span>
												</if>
											</td>
										</if>

										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="tc order-logistics-status borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<if condition="$gl['install_status'] eq 1">
													<span>已安装</span>
													<else />
													<span>未安装</span>
												</if>
											</td>
										</if>
										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="order-address tc borderRight" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<span>
													<if condition="$gl.order_status lt 3">
														￥{$ol['count_price']}<br>
													<elseif condition="$gl.order_status gt 2" />
														￥{$gl['good_small_total']+$gl['install_price']+$gl['freight']}
													</if>
												</span>
											</td>
										</if>
										<if condition="($k eq 1) or ($gl['order_status'] gt 2)">
											<td class="order-op tc listzx" style="border-bottom: 1px solid #f0f0f0!important;" <if condition="$gl.order_status lt 3">rowspan="{$ol.order_good_count}"</if>>
												<if condition="$gl['order_status'] eq -1">
													<a href="{:U('order_del')}?on={$gl.order_number}" class="ajax-delete btn-zxc" data-info="确认删除该订单？">删除</a>
												<elseif condition="($gl['order_status'] eq 6) OR ($gl['order_status'] eq 9)"/>
													<a href="{:U('order_return_info')}?oc={$gl.order_id}" class="btn-zxc">换货信息</a>
													<a href="{:U('order_del')}?oc={$gl.order_id}" class="ajax-delete btn-zxc" data-info="确认删除该订单？">删除</a>
												<elseif condition="$gl['order_status'] eq 0"/>
													<a class="btn-zxc" href="{:U('to_pay_for')}?on={$gl.order_number}">去支付</a><!-- pay_type为1代表单独去支付，不展示收货地址相关信息 -->
													<a href="{:U('order_cancel')}?on={$gl.order_number}" class="ajax-delete btn-zxc" data-info="确认取消该订单？">取消订单</a>
												<elseif condition="$gl['order_status'] eq 2"/>
													<a class="rst-btn btn-zxc" href="{:U('order_succ')}?on={$gl.order_number}">确认收货</a>
												<elseif condition="$gl['order_status'] eq 3"/>
													<a href="{:U('shop_tuihuo')}?oc={$gl.order_id}" class="btn-zxc">换货</a>
													<a href="{:U('order_del')}?oc={$gl.order_id}" class="ajax-delete btn-zxc" data-info="确认删除该订单？">删除</a>
												<elseif condition="$gl['order_status'] eq 4"/>
													<a href="{:U('order_return_info')}?oc={$gl.order_id}" class="btn-zxc">换货信息</a>
												<elseif condition="$gl['order_status'] eq 5"/>
													<a href="{:U('order_return_info')}?oc={$gl.order_id}" class="btn-zxc">换货信息</a>
													<a class="rst-btn btn-zxc" href="{:U('order_barter')}?oc={$gl.order_id}">已换货</a>
												<elseif condition="$gl['order_status'] eq 8"/>
													<a class="rst-btn btn-zxc" href="{:U('order_refund')}?oc={$gl.order_id}">已退货</a>
												</if>
												<br />
												<br />
												<a class="rst-btn zxbtn" href="javascript:;">订单详情</a>
												<div class="listhover">
													<p>订单编号：<span>{$gl['order_number']}</span></p>
													<neq name="gl['pay_time']" value="">
														<p>支付时间：<span>{$gl['pay_time']}</span></p>
													</neq>
													<neq name="gl['delivery_time']" value="">
														<p>发货时间：<span>{$gl['delivery_time']}</span></p>
													</neq>
													<neq name="gl['confirm_time']" value="">
														<p>收货时间：<span>{$gl['confirm_time']}</span></p>
													</neq>
													<p>收货人/电话：<span>{$ol['receiver']} {$ol['phone']} </span></p>
													<p>收货地址：<span>{$ol['province']}{$ol['city']}{$ol['county']}{$ol['town']}{$ol['detailed_address']}</span></p>
													<if condition="($ol['is_install'] eq 1) and ($ol['order_status'] gt 0) and ($ol['electrician_id'] neq 0)">
														<p>安装电工/电话：
																	<span>{$ol['electrician_name']} {$ol['electrician_phone']}</span>
														</p>
														<if condition="($ol['electrician_name'] neq '') and ($ol['install_type'] eq 1)">
															<p>电工接单：<span>{$ol['grab_time']}</span></p>
														</if>
														<if condition="($ol['electrician_name'] neq '') and ($ol['install_type'] eq 2)">
															<p>电工确认：<span>{$ol['electrician_confirm_time']}</span></p>
														</if>
														<if condition="$ol['install_time'] neq ''">
															<p>完成安装：<span>{$ol['install_time']}</span></p>
														</if>
													</if>
													<neq name="gl['apply_return_time']" value="">
														<p>申请换货：<span>{$gl['apply_return_time']}</span></p>
													</neq>
													<neq name="gl['confirm_return_time']" value="">
														<p>确认换货：<span>{$gl['confirm_return_time']}</span></p>
													</neq>
													<neq name="gl['return_time']" value="">
														<p>实际换货：<span>{$gl['return_time']}</span></p>
													</neq>
													<div></div>
												</div>
											</td>
										</if>
									</tr>
								</volist>
							</volist>
						</tbody>
							<tfoot>
							<tr>
								<td class="tr pr10" colspan="7">
									<div class="pager">
										<div class="pages" align="center">
											<div style="padding-top: 5px" align="right">
												<div class="page-bottom">
													<span>{$page}</span>
												</div>
											</div>
										</div>
									</div>
								</td>
							</tr>
							</tfoot>
					</table>
					</div>
				</div>
			</div>
			<input type="hidden" id="hdnIfOpenOnlinePay" value="0" autocomplete="off">
		</div>
	</div>

	<!-- 联系客服 -->
	<a target="_blank" style="position: fixed;right: 20px;bottom: 60px;" href="http://wpa.qq.com/msgrd?v=3&uin=2675162351&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2675162351:51" alt="联系客服" title="联系客服"/></a>
	<a target="_blank" style="position: fixed;right: 20px;bottom: 30px;" href="http://wpa.qq.com/msgrd?v=3&uin=1478709334&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2675162351:51" alt="联系客服" title="联系客服"/></a>

	<script>
		$('.zxbtn').hover(function(){
			$(this).next().css('display','block')
		},function(){
			$(this).next().css('display','none')
		})
	</script>
	<!--公共底部-->
	<include file="Public:footer"/>
</body>
</html>